from flask import jsonify, make_response
class mod:
    def __init__(self):
        self.name = "Redirect"
        self.args = ['url']
    def handle(self, userargs, requestobject):
        rp = make_response("")
        rp.headers['Location'] = userargs["url"]
        rp.status_code = 302
        return rp

    def init(self, args):
        pass